import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/pages/Home';
import News from '@/pages/News';
import Login from '@/pages/Login';
import Register from '@/pages/Register';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/news',
      name: 'news',
      component: News
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/register',
      name: 'register',
      component: Register
    },
  ]
})
